package com.xd.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CustomerExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CustomerExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCustomerIdIsNull() {
            addCriterion("CUSTOMER_ID is null");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIsNotNull() {
            addCriterion("CUSTOMER_ID is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerIdEqualTo(String value) {
            addCriterion("CUSTOMER_ID =", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotEqualTo(String value) {
            addCriterion("CUSTOMER_ID <>", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdGreaterThan(String value) {
            addCriterion("CUSTOMER_ID >", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdGreaterThanOrEqualTo(String value) {
            addCriterion("CUSTOMER_ID >=", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdLessThan(String value) {
            addCriterion("CUSTOMER_ID <", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdLessThanOrEqualTo(String value) {
            addCriterion("CUSTOMER_ID <=", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdLike(String value) {
            addCriterion("CUSTOMER_ID like", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotLike(String value) {
            addCriterion("CUSTOMER_ID not like", value, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdIn(List<String> values) {
            addCriterion("CUSTOMER_ID in", values, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotIn(List<String> values) {
            addCriterion("CUSTOMER_ID not in", values, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdBetween(String value1, String value2) {
            addCriterion("CUSTOMER_ID between", value1, value2, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerIdNotBetween(String value1, String value2) {
            addCriterion("CUSTOMER_ID not between", value1, value2, "customerId");
            return (Criteria) this;
        }

        public Criteria andCustomerAreaIdIsNull() {
            addCriterion("CUSTOMER_AREA_ID is null");
            return (Criteria) this;
        }

        public Criteria andCustomerAreaIdIsNotNull() {
            addCriterion("CUSTOMER_AREA_ID is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerAreaIdEqualTo(String value) {
            addCriterion("CUSTOMER_AREA_ID =", value, "customerAreaId");
            return (Criteria) this;
        }

        public Criteria andCustomerAreaIdNotEqualTo(String value) {
            addCriterion("CUSTOMER_AREA_ID <>", value, "customerAreaId");
            return (Criteria) this;
        }

        public Criteria andCustomerAreaIdGreaterThan(String value) {
            addCriterion("CUSTOMER_AREA_ID >", value, "customerAreaId");
            return (Criteria) this;
        }

        public Criteria andCustomerAreaIdGreaterThanOrEqualTo(String value) {
            addCriterion("CUSTOMER_AREA_ID >=", value, "customerAreaId");
            return (Criteria) this;
        }

        public Criteria andCustomerAreaIdLessThan(String value) {
            addCriterion("CUSTOMER_AREA_ID <", value, "customerAreaId");
            return (Criteria) this;
        }

        public Criteria andCustomerAreaIdLessThanOrEqualTo(String value) {
            addCriterion("CUSTOMER_AREA_ID <=", value, "customerAreaId");
            return (Criteria) this;
        }

        public Criteria andCustomerAreaIdLike(String value) {
            addCriterion("CUSTOMER_AREA_ID like", value, "customerAreaId");
            return (Criteria) this;
        }

        public Criteria andCustomerAreaIdNotLike(String value) {
            addCriterion("CUSTOMER_AREA_ID not like", value, "customerAreaId");
            return (Criteria) this;
        }

        public Criteria andCustomerAreaIdIn(List<String> values) {
            addCriterion("CUSTOMER_AREA_ID in", values, "customerAreaId");
            return (Criteria) this;
        }

        public Criteria andCustomerAreaIdNotIn(List<String> values) {
            addCriterion("CUSTOMER_AREA_ID not in", values, "customerAreaId");
            return (Criteria) this;
        }

        public Criteria andCustomerAreaIdBetween(String value1, String value2) {
            addCriterion("CUSTOMER_AREA_ID between", value1, value2, "customerAreaId");
            return (Criteria) this;
        }

        public Criteria andCustomerAreaIdNotBetween(String value1, String value2) {
            addCriterion("CUSTOMER_AREA_ID not between", value1, value2, "customerAreaId");
            return (Criteria) this;
        }

        public Criteria andCustomerAddressIsNull() {
            addCriterion("CUSTOMER_ADDRESS is null");
            return (Criteria) this;
        }

        public Criteria andCustomerAddressIsNotNull() {
            addCriterion("CUSTOMER_ADDRESS is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerAddressEqualTo(String value) {
            addCriterion("CUSTOMER_ADDRESS =", value, "customerAddress");
            return (Criteria) this;
        }

        public Criteria andCustomerAddressNotEqualTo(String value) {
            addCriterion("CUSTOMER_ADDRESS <>", value, "customerAddress");
            return (Criteria) this;
        }

        public Criteria andCustomerAddressGreaterThan(String value) {
            addCriterion("CUSTOMER_ADDRESS >", value, "customerAddress");
            return (Criteria) this;
        }

        public Criteria andCustomerAddressGreaterThanOrEqualTo(String value) {
            addCriterion("CUSTOMER_ADDRESS >=", value, "customerAddress");
            return (Criteria) this;
        }

        public Criteria andCustomerAddressLessThan(String value) {
            addCriterion("CUSTOMER_ADDRESS <", value, "customerAddress");
            return (Criteria) this;
        }

        public Criteria andCustomerAddressLessThanOrEqualTo(String value) {
            addCriterion("CUSTOMER_ADDRESS <=", value, "customerAddress");
            return (Criteria) this;
        }

        public Criteria andCustomerAddressLike(String value) {
            addCriterion("CUSTOMER_ADDRESS like", value, "customerAddress");
            return (Criteria) this;
        }

        public Criteria andCustomerAddressNotLike(String value) {
            addCriterion("CUSTOMER_ADDRESS not like", value, "customerAddress");
            return (Criteria) this;
        }

        public Criteria andCustomerAddressIn(List<String> values) {
            addCriterion("CUSTOMER_ADDRESS in", values, "customerAddress");
            return (Criteria) this;
        }

        public Criteria andCustomerAddressNotIn(List<String> values) {
            addCriterion("CUSTOMER_ADDRESS not in", values, "customerAddress");
            return (Criteria) this;
        }

        public Criteria andCustomerAddressBetween(String value1, String value2) {
            addCriterion("CUSTOMER_ADDRESS between", value1, value2, "customerAddress");
            return (Criteria) this;
        }

        public Criteria andCustomerAddressNotBetween(String value1, String value2) {
            addCriterion("CUSTOMER_ADDRESS not between", value1, value2, "customerAddress");
            return (Criteria) this;
        }

        public Criteria andCustomerNameIsNull() {
            addCriterion("CUSTOMER_NAME is null");
            return (Criteria) this;
        }

        public Criteria andCustomerNameIsNotNull() {
            addCriterion("CUSTOMER_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerNameEqualTo(String value) {
            addCriterion("CUSTOMER_NAME =", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameNotEqualTo(String value) {
            addCriterion("CUSTOMER_NAME <>", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameGreaterThan(String value) {
            addCriterion("CUSTOMER_NAME >", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameGreaterThanOrEqualTo(String value) {
            addCriterion("CUSTOMER_NAME >=", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameLessThan(String value) {
            addCriterion("CUSTOMER_NAME <", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameLessThanOrEqualTo(String value) {
            addCriterion("CUSTOMER_NAME <=", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameLike(String value) {
            addCriterion("CUSTOMER_NAME like", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameNotLike(String value) {
            addCriterion("CUSTOMER_NAME not like", value, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameIn(List<String> values) {
            addCriterion("CUSTOMER_NAME in", values, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameNotIn(List<String> values) {
            addCriterion("CUSTOMER_NAME not in", values, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameBetween(String value1, String value2) {
            addCriterion("CUSTOMER_NAME between", value1, value2, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerNameNotBetween(String value1, String value2) {
            addCriterion("CUSTOMER_NAME not between", value1, value2, "customerName");
            return (Criteria) this;
        }

        public Criteria andCustomerPhoneIsNull() {
            addCriterion("CUSTOMER_PHONE is null");
            return (Criteria) this;
        }

        public Criteria andCustomerPhoneIsNotNull() {
            addCriterion("CUSTOMER_PHONE is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerPhoneEqualTo(String value) {
            addCriterion("CUSTOMER_PHONE =", value, "customerPhone");
            return (Criteria) this;
        }

        public Criteria andCustomerPhoneNotEqualTo(String value) {
            addCriterion("CUSTOMER_PHONE <>", value, "customerPhone");
            return (Criteria) this;
        }

        public Criteria andCustomerPhoneGreaterThan(String value) {
            addCriterion("CUSTOMER_PHONE >", value, "customerPhone");
            return (Criteria) this;
        }

        public Criteria andCustomerPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("CUSTOMER_PHONE >=", value, "customerPhone");
            return (Criteria) this;
        }

        public Criteria andCustomerPhoneLessThan(String value) {
            addCriterion("CUSTOMER_PHONE <", value, "customerPhone");
            return (Criteria) this;
        }

        public Criteria andCustomerPhoneLessThanOrEqualTo(String value) {
            addCriterion("CUSTOMER_PHONE <=", value, "customerPhone");
            return (Criteria) this;
        }

        public Criteria andCustomerPhoneLike(String value) {
            addCriterion("CUSTOMER_PHONE like", value, "customerPhone");
            return (Criteria) this;
        }

        public Criteria andCustomerPhoneNotLike(String value) {
            addCriterion("CUSTOMER_PHONE not like", value, "customerPhone");
            return (Criteria) this;
        }

        public Criteria andCustomerPhoneIn(List<String> values) {
            addCriterion("CUSTOMER_PHONE in", values, "customerPhone");
            return (Criteria) this;
        }

        public Criteria andCustomerPhoneNotIn(List<String> values) {
            addCriterion("CUSTOMER_PHONE not in", values, "customerPhone");
            return (Criteria) this;
        }

        public Criteria andCustomerPhoneBetween(String value1, String value2) {
            addCriterion("CUSTOMER_PHONE between", value1, value2, "customerPhone");
            return (Criteria) this;
        }

        public Criteria andCustomerPhoneNotBetween(String value1, String value2) {
            addCriterion("CUSTOMER_PHONE not between", value1, value2, "customerPhone");
            return (Criteria) this;
        }

        public Criteria andCustomerTelIsNull() {
            addCriterion("CUSTOMER_TEL is null");
            return (Criteria) this;
        }

        public Criteria andCustomerTelIsNotNull() {
            addCriterion("CUSTOMER_TEL is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerTelEqualTo(String value) {
            addCriterion("CUSTOMER_TEL =", value, "customerTel");
            return (Criteria) this;
        }

        public Criteria andCustomerTelNotEqualTo(String value) {
            addCriterion("CUSTOMER_TEL <>", value, "customerTel");
            return (Criteria) this;
        }

        public Criteria andCustomerTelGreaterThan(String value) {
            addCriterion("CUSTOMER_TEL >", value, "customerTel");
            return (Criteria) this;
        }

        public Criteria andCustomerTelGreaterThanOrEqualTo(String value) {
            addCriterion("CUSTOMER_TEL >=", value, "customerTel");
            return (Criteria) this;
        }

        public Criteria andCustomerTelLessThan(String value) {
            addCriterion("CUSTOMER_TEL <", value, "customerTel");
            return (Criteria) this;
        }

        public Criteria andCustomerTelLessThanOrEqualTo(String value) {
            addCriterion("CUSTOMER_TEL <=", value, "customerTel");
            return (Criteria) this;
        }

        public Criteria andCustomerTelLike(String value) {
            addCriterion("CUSTOMER_TEL like", value, "customerTel");
            return (Criteria) this;
        }

        public Criteria andCustomerTelNotLike(String value) {
            addCriterion("CUSTOMER_TEL not like", value, "customerTel");
            return (Criteria) this;
        }

        public Criteria andCustomerTelIn(List<String> values) {
            addCriterion("CUSTOMER_TEL in", values, "customerTel");
            return (Criteria) this;
        }

        public Criteria andCustomerTelNotIn(List<String> values) {
            addCriterion("CUSTOMER_TEL not in", values, "customerTel");
            return (Criteria) this;
        }

        public Criteria andCustomerTelBetween(String value1, String value2) {
            addCriterion("CUSTOMER_TEL between", value1, value2, "customerTel");
            return (Criteria) this;
        }

        public Criteria andCustomerTelNotBetween(String value1, String value2) {
            addCriterion("CUSTOMER_TEL not between", value1, value2, "customerTel");
            return (Criteria) this;
        }

        public Criteria andIsPifaIsNull() {
            addCriterion("IS_PIFA is null");
            return (Criteria) this;
        }

        public Criteria andIsPifaIsNotNull() {
            addCriterion("IS_PIFA is not null");
            return (Criteria) this;
        }

        public Criteria andIsPifaEqualTo(String value) {
            addCriterion("IS_PIFA =", value, "isPifa");
            return (Criteria) this;
        }

        public Criteria andIsPifaNotEqualTo(String value) {
            addCriterion("IS_PIFA <>", value, "isPifa");
            return (Criteria) this;
        }

        public Criteria andIsPifaGreaterThan(String value) {
            addCriterion("IS_PIFA >", value, "isPifa");
            return (Criteria) this;
        }

        public Criteria andIsPifaGreaterThanOrEqualTo(String value) {
            addCriterion("IS_PIFA >=", value, "isPifa");
            return (Criteria) this;
        }

        public Criteria andIsPifaLessThan(String value) {
            addCriterion("IS_PIFA <", value, "isPifa");
            return (Criteria) this;
        }

        public Criteria andIsPifaLessThanOrEqualTo(String value) {
            addCriterion("IS_PIFA <=", value, "isPifa");
            return (Criteria) this;
        }

        public Criteria andIsPifaLike(String value) {
            addCriterion("IS_PIFA like", value, "isPifa");
            return (Criteria) this;
        }

        public Criteria andIsPifaNotLike(String value) {
            addCriterion("IS_PIFA not like", value, "isPifa");
            return (Criteria) this;
        }

        public Criteria andIsPifaIn(List<String> values) {
            addCriterion("IS_PIFA in", values, "isPifa");
            return (Criteria) this;
        }

        public Criteria andIsPifaNotIn(List<String> values) {
            addCriterion("IS_PIFA not in", values, "isPifa");
            return (Criteria) this;
        }

        public Criteria andIsPifaBetween(String value1, String value2) {
            addCriterion("IS_PIFA between", value1, value2, "isPifa");
            return (Criteria) this;
        }

        public Criteria andIsPifaNotBetween(String value1, String value2) {
            addCriterion("IS_PIFA not between", value1, value2, "isPifa");
            return (Criteria) this;
        }

        public Criteria andCustomerAddtimeIsNull() {
            addCriterion("CUSTOMER_ADDTIME is null");
            return (Criteria) this;
        }

        public Criteria andCustomerAddtimeIsNotNull() {
            addCriterion("CUSTOMER_ADDTIME is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerAddtimeEqualTo(Date value) {
            addCriterion("CUSTOMER_ADDTIME =", value, "customerAddtime");
            return (Criteria) this;
        }

        public Criteria andCustomerAddtimeNotEqualTo(Date value) {
            addCriterion("CUSTOMER_ADDTIME <>", value, "customerAddtime");
            return (Criteria) this;
        }

        public Criteria andCustomerAddtimeGreaterThan(Date value) {
            addCriterion("CUSTOMER_ADDTIME >", value, "customerAddtime");
            return (Criteria) this;
        }

        public Criteria andCustomerAddtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CUSTOMER_ADDTIME >=", value, "customerAddtime");
            return (Criteria) this;
        }

        public Criteria andCustomerAddtimeLessThan(Date value) {
            addCriterion("CUSTOMER_ADDTIME <", value, "customerAddtime");
            return (Criteria) this;
        }

        public Criteria andCustomerAddtimeLessThanOrEqualTo(Date value) {
            addCriterion("CUSTOMER_ADDTIME <=", value, "customerAddtime");
            return (Criteria) this;
        }

        public Criteria andCustomerAddtimeIn(List<Date> values) {
            addCriterion("CUSTOMER_ADDTIME in", values, "customerAddtime");
            return (Criteria) this;
        }

        public Criteria andCustomerAddtimeNotIn(List<Date> values) {
            addCriterion("CUSTOMER_ADDTIME not in", values, "customerAddtime");
            return (Criteria) this;
        }

        public Criteria andCustomerAddtimeBetween(Date value1, Date value2) {
            addCriterion("CUSTOMER_ADDTIME between", value1, value2, "customerAddtime");
            return (Criteria) this;
        }

        public Criteria andCustomerAddtimeNotBetween(Date value1, Date value2) {
            addCriterion("CUSTOMER_ADDTIME not between", value1, value2, "customerAddtime");
            return (Criteria) this;
        }

        public Criteria andCustomerUpdateIsNull() {
            addCriterion("CUSTOMER_UPDATE is null");
            return (Criteria) this;
        }

        public Criteria andCustomerUpdateIsNotNull() {
            addCriterion("CUSTOMER_UPDATE is not null");
            return (Criteria) this;
        }

        public Criteria andCustomerUpdateEqualTo(Date value) {
            addCriterion("CUSTOMER_UPDATE =", value, "customerUpdate");
            return (Criteria) this;
        }

        public Criteria andCustomerUpdateNotEqualTo(Date value) {
            addCriterion("CUSTOMER_UPDATE <>", value, "customerUpdate");
            return (Criteria) this;
        }

        public Criteria andCustomerUpdateGreaterThan(Date value) {
            addCriterion("CUSTOMER_UPDATE >", value, "customerUpdate");
            return (Criteria) this;
        }

        public Criteria andCustomerUpdateGreaterThanOrEqualTo(Date value) {
            addCriterion("CUSTOMER_UPDATE >=", value, "customerUpdate");
            return (Criteria) this;
        }

        public Criteria andCustomerUpdateLessThan(Date value) {
            addCriterion("CUSTOMER_UPDATE <", value, "customerUpdate");
            return (Criteria) this;
        }

        public Criteria andCustomerUpdateLessThanOrEqualTo(Date value) {
            addCriterion("CUSTOMER_UPDATE <=", value, "customerUpdate");
            return (Criteria) this;
        }

        public Criteria andCustomerUpdateIn(List<Date> values) {
            addCriterion("CUSTOMER_UPDATE in", values, "customerUpdate");
            return (Criteria) this;
        }

        public Criteria andCustomerUpdateNotIn(List<Date> values) {
            addCriterion("CUSTOMER_UPDATE not in", values, "customerUpdate");
            return (Criteria) this;
        }

        public Criteria andCustomerUpdateBetween(Date value1, Date value2) {
            addCriterion("CUSTOMER_UPDATE between", value1, value2, "customerUpdate");
            return (Criteria) this;
        }

        public Criteria andCustomerUpdateNotBetween(Date value1, Date value2) {
            addCriterion("CUSTOMER_UPDATE not between", value1, value2, "customerUpdate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}